from selenium import webdriver
import time
driver = webdriver.Chrome(executable_path=r"D:\python\chromedriver.exe")
driver.get("http://121.43.169.97:8848/pageA.html")
driver.maximize_window()
driver.back()
driver.refresh()
driver.forward()
driver.set_window_size(300, 300)
driver.set_window_position(300, 200)
title = driver.title
url = driver.current_url
print("页面标题：", title)
print("当前URL：", url)
time.sleep(2)
driver.close()
driver.quit()